<?php
include "./common.php";

$query = $db->query("SELECT title,id FROM ".tname("news")." ORDER BY posttime DESC LIMIT 10");
while($array = $db->fetch_array($query)){
	$rs[] = $array;
}

include template("index"); 
?>